package com.ruoyi.module.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 订单对应商品对象 fu__order_goods
 *
 * @author fubojin
 * @date 2024-12-23
 */
@Data
@ApiModel(value = "订单对应商品")
@EqualsAndHashCode(callSuper = true)
public class OrderGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    @ApiModelProperty(value = "商品ID")
    private Long goodsId;

    /**
     * 商品数量
     */
    @Excel(name = "商品数量")
    @ApiModelProperty(value = "商品数量")
    private Integer goodsQuantity;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    /**
     * 商品编码
     */
    @Excel(name = "商品编码")
    @ApiModelProperty(value = "商品编码")
    private String goodsNumber;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    @ApiModelProperty(value = "商品图片")
    private String goodsImg;

    /**
     * 商品单价
     */
    @Excel(name = "商品单价")
    @ApiModelProperty(value = "商品单价")
    private BigDecimal goodsPrice;

    /**
     * 分销商利润（元）
     */
    @Excel(name = "分销商利润（元）")
    @ApiModelProperty(value = "分销商利润（元）")
    private BigDecimal profit;

    /**
     * 商品类型(1-正常商品，2-特殊商品，3-赠品)
     */
    private Integer type;


}
